package com.liaowei.post.model.param;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class SavePostParam {
    private Long id; // 帖子id
    @NotBlank(message = "帖子标题不能为空")
    private String title; // 标题
    @NotNull(message = "发帖人不能为空")
    @Min(value = 1,message = "请输入合法的发帖人")
    private Long userId; // 发帖人
    @NotNull(message = "专栏不能为空")
    @Min(value = 1,message = "请输入合法的专栏")
    private Long specialColumnId; // 专栏id
    private String coverImage; // 封面图
    @NotNull(message = "创建人不能为空")
    @Min(value = 1,message = "请输入合法的创建人")
    private Long createBy; // 创建人
    @NotNull(message = "修改人不能为空")
    @Min(value = 1,message = "请输入合法的修改人")
    private Long updateBy; // 修改人

}
